package com.yc.entities.custom;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author kukaha
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CustomRoleSaveRequestBean对象", description="角色管理保存请求Bean")
public class CustomRoleSaveRequestBean implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户id")
    private Integer id;

    @ApiModelProperty(value = "院长id")
    private Integer deanId;

    @ApiModelProperty(value = "账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "医生姓名")
    @NotBlank(message = "医生姓名不能为空")
    private String doctorName;

    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    private Integer roleId;

    @ApiModelProperty(value = "科室id")
    @NotNull(message = "科室id不能为空")
    private Integer departmentId;

    @ApiModelProperty(value = "pc端权限集合")
    private Map<String,List<String>> pcLists;

    @ApiModelProperty(value = "app端权限集合")
    private Map<String,List<String>> appLists;

}
